﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Data;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using FineUI;

namespace FineUI.Examples
{
    public partial class table_class : System.Web.UI.Page
    {
        protected DataSet LoadClassInform()
        {
            Maticsoft.BLL.Class currentClass = new Maticsoft.BLL.Class();
            DataSet DSClass = currentClass.GetList("DESC");
            DataView view1 = DSClass.Tables[0].DefaultView;
            GridClass.DataSource = view1;
            GridClass.DataBind();
            return DSClass;

        }
        protected void Page_Load(object sender, EventArgs e)
        {
            LoadClassInform();
        }

        protected void GridClass_PageIndexChange(object sender, GridPageEventArgs e)
        {
            GridClass.PageIndex = e.NewPageIndex;
            LoadClassInform();
        }
    }
}